<%-- 
    Document   : avg-2ml-input
    Created on : May 23, 2011, 11:07:40 AM
    Author     : joep
--%>

<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <SCRIPT TYPE="text/javascript">
            function numbersonly(myfield, e, dec)
            {
                var key;
                var keychar;

                if (window.event)
                   key = window.event.keyCode;
                else if (e)
                   key = e.which;
                else
                   return true;
                keychar = String.fromCharCode(key);

                // control keys
                if ((key==null) || (key==0) || (key==8) ||
                    (key==9) || (key==13) || (key==27) )
                   return true;

                // numbers
                else if ((("0123456789").indexOf(keychar) > -1))
                   return true;

                // decimal point jump
                else if (dec && (keychar == "."))
                   {
                   myfield.form.elements[dec].focus();
                   return false;
                   }
                else
                   return false;
                }


        </SCRIPT>

        <jsp:include page="includes/script.html"/>

        <title>Input</title>
    </head>

    <body>
        <center>
        <h2>Input Average Stop Time 2ML</h2>
        <br>

        <form method="post">
            <table>
                <tr>
                    <td>Tahun</td>
                    <td><input type="text" name="tahun" onKeyPress="return numbersonly(this, event)"></td>
                </tr>
                <tr>
                    <td>Average</td>
                    <td><input type="text" name="average" onKeyPress="return numbersonly(this, event)"></td>
                </tr>
                <tr>
                    <td>Jenis</td>
                    <td>
                        <select name="jenis">
                            <option value="0" selected>(please select:)</option>
                            <option value="actual mould 2ML">Actual Mould 2ML</option>
                            <option value="actual sand tr 2ML">Actual Sand tr 2ML</option>
                            <option value="actual 2ML">Actual 2ML</option>
                            <option value="batas max 2ML">Batas Max 2ML</option>
                            <option value="frekwensi 2ML">Frekwensi 2ML</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="right"><input  type="submit" name="submit" value="Save" ></td>
                </tr>
            </table>
        </form>

</center>

    </body>
</html>
